import { ISysMeasureUnit } from '/@/views/supplychain/sysmeasureunit/api/interface';
import { ISysMaterial } from '/@/views/supplychain/sysmaterial/api/interface';

export interface ISysMaterialSku {
	ID?: string | null;
	Name: string | null;
	Code: string | null;
	ErpId: string | null;
	Description: string | null;
	State: '启用' | '禁用' | '废弃';
	BarCode: string | null;
	TaxPrice: string | null;
	Price: string | null;
	LastInStockTime: Date | null;
	UnitId: null;
	Unit?: ISysMeasureUnit;
	MaterialId: null;
	Material?: ISysMaterial;
	Attributes: string | null;
	Remark: string | null;
}

export interface ISysMaterialSkuVm {
	Entity: ISysMaterialSku;
	ActionName?: string | null;
	IsMyApprove?: boolean | null;
	MaterialName?: string | null;
	Material?: ISysMaterial | null;
	SelectedAttributesIds: string[];
	Attributes?: Array<{ ID?: string; Name: string; Value: string; AttributeId?: string }> | null;
}

export interface ISysMaterialSkuView extends ISysMaterialSku {

	AttributesNames: string[];

}

export interface ISysMaterialSkuQuery {
	Name?: string | null;
	Code?: string | null;
	ErpId?: string | null;
	ErpName?: string | null;
	ErpModel?: string | null;
	State?: number | null;
	LastInStockTime?: Date | null;
	MaterialId?: string | null;
	MaterialName?: string | null;
	MaterialCode?: string | null;
	Attributes?: string | null;
	SelectedAttributesIds?: string[] | null;
}